package com.zatech.cgnci.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zatech.cgnci.project.dto.CgnciClaimCaseQueryDTO;
import com.zatech.cgnci.project.entity.CgnciClaimCaseTaskDO;
import com.zatech.cgnci.project.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 理赔案件主表 Mapper 接口
 * </p>
 *
 * @author Generator
 * @since 2024-12-23
 */
@Mapper
public interface CgnciClaimCaseTaskMapper extends BaseMapper<CgnciClaimCaseTaskDO> {


    CgnciClaimCaseTaskDO selectByTaskNo(@Param("taskNo") String taskNo);

    IPage<CgnciClaimCasePageWorkbenchVO> casePageTaskWorkbench(IPage<CgnciClaimCasePageWorkbenchVO> page, @Param("dto") CgnciClaimCaseQueryDTO queryDTO);

    List<CgnciClaimCaseTaskVO> selectTaskList(@Param("caseNo") String caseNo);

    CgnciClaimCaseQuantityVO getCaseCount(@Param("creator") String creator);

    CaseStatusCountVO caseStatusCount(@Param("creator") String creator, @Param("taskType")String taskType);
}